import axios from 'axios'
axios.defaults.baseURL='http://www.hrcould.com/'
axios.defaults.timeout=5000
axios.defaults.headers.post['Contet-Type']='application/json'
//请求之前的拦截器
axios.interceptors.request.use(
    // config=>{

    // }
)
//请求响应时候的拦截器
axios.interceptors.response.use(
    response=>{
        return response
    },
    error=>{
        if(error.response){
            switch (error.response.status){
                case 401:
                break;
            }
        }
    }
)

export default axios